/* 小红书评论采集工具样式 */

/* 采集按钮样式 */
.xhs-collector-btn {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  min-width: 160px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* 当按钮在日记弹窗内时的样式 */
.note-detail-mask .xhs-collector-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* 加载中状态的动画效果 */
.xhs-collector-btn.loading {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.xhs-collector-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252, #ff7979);
}

.xhs-collector-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.xhs-collector-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #bbb, #ccc);
}

.xhs-collector-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(187, 187, 187, 0.3);
}

/* 消息提示样式 */
.xhs-collector-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  max-width: 300px;
  word-wrap: break-word;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 当消息在日记弹窗内时的样式 */
.note-detail-mask .xhs-collector-message {
  position: absolute;
  top: 70px;
  right: 20px;
  z-index: 1001;
}

.xhs-collector-message.success {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.xhs-collector-message.error {
  background: linear-gradient(135deg, #f44336, #ef5350);
}

.xhs-collector-message.warning {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.xhs-collector-message.info {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .xhs-collector-btn {
    top: 80px;
    right: 15px;
    padding: 10px 16px;
    font-size: 12px;
    min-width: 140px;
  }
  
  .xhs-collector-message {
    top: 15px;
    right: 15px;
    max-width: 250px;
    font-size: 12px;
    padding: 12px 16px;
  }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  .xhs-collector-btn {
    background: linear-gradient(135deg, #e91e63, #f06292);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  }
  
  .xhs-collector-btn:hover {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
  }
} 